#include "common/json_schema.h"
#include "messaging/rpc/client.h"
#include "messaging/rpc/server.h"
#include "common/path.h"

using namespace std;
using namespace evm;
using namespace evm::messaging;
using namespace evm::config;


int main(int argc, const char** argv) {

    evm::init_log("tests", false, true);

    string json_file = "messaging.json";

    auto conf = make_shared<ConfigOpts>("rpc_tests", json_file);
    register_opts(conf);

//    conf->override_opt("rpc_redis_address", "10.141.123.176:6379");

    (*conf)(argc, argv);

//    conf->log();

    auto transport = get_transport(conf);

    auto target = make_shared<Target>(Json({
                                           {"topic", "evm"}
                                           }
    ));

    auto client = make_shared<RPCClient>(transport, target);

    return 0;
}
